#include "Exception.h"

SocketException::SocketException(std::string msg) {
    this->msg = msg;
}
const char * SocketException::what() const throw() {
    return this->msg.c_str();
}

const char * TimeoutException::what() const throw() {
    return "Timeout";
}


Exception::Exception(std::string msg) {
    this->msg = msg;
}
const char * Exception::what() const throw() {
    return this->msg.c_str();
}

TaskFailedException::TaskFailedException(std::string msg) {
    this->msg = "TaskFailedException:\n\t" + msg;
}
const char * TaskFailedException::what() const throw() {
    return this->msg.c_str();
}

